﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphControl
{

    public class Edge
    {
        private Vertex _to;
        private Vertex _from;
        private Object _weight;

        public Vertex From { get { return _from; } set { _from = value; } }
        public Vertex To { get { return _to; } set { _to = value; } }
        public Object Weight { get { return _weight; } set { _weight = value; } }

        public Edge(Vertex from, Vertex to, Object weight)
        {
            _to = to;
            _from = from;
            _weight = weight;
        }
    }

}
